package com.apexsoft.monitor.front.console.host.om;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 主机
 */
@TableName("t_host")
public class Host {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private int id;
    /**
     * 主机代码
     */
    @TableField(value = "host_code")
    private String hostCode;
    /**
     * 主机名称
     */
    @TableField(value = "host_name")
    private String hostName;
    /**
     * 主机IP
     */
    @TableField(value = "host_ip")
    private String hostIp;
    /**
     * 主机端口
     */
    @TableField(value = "host_port")
    private int hostPort;
//    /**
//     * 主机类型
//     */
//    @TableField(value = "host_type")
//    private String hostType;
    /**
     * 主机描述
     */
    @TableField(value = "host_desc")
    private String hostDesc;
    /**
     * 主机状态
     */
    @TableField(value = "host_status")
    private int hostStatus;
    /**
     * 部署目录
     */
    @TableField(value = "host_dir")
    private String hostDir = "/opt";
    /**
     * 用户名
     */
    @TableField(value = "user_name")
    private String userName;
    /**
     * 密码
     */
    @TableField(value = "user_pwd")
    private String userPwd;
    /**
     * 监控进程端口号
     */
    @TableField(value = "agent_port")
    private int agentPort;

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }

    public String getHostCode() {
        return hostCode;
    }

    public void setHostCode(String hostCode) {
        this.hostCode = hostCode;
    }

    public String getHostName() {
        return this.hostName;
    }
    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public String getHostIp() {
        return this.hostIp;
    }
    public void setHostIp(String hostIp) {
        this.hostIp = hostIp;
    }

    public int getHostPort() {
        return this.hostPort;
    }
    public void setHostPort(int hostPort) {
        this.hostPort = hostPort;
    }

//    public String getHostType() {
//        return this.hostType;
//    }
//    public void setHostType(String hostType) {
//        this.hostType = hostType;
//    }

    public String getHostDesc() {
        return this.hostDesc;
    }
    public void setHostDesc(String hostDesc) {
        this.hostDesc = hostDesc;
    }

    public int getHostStatus() {
        return this.hostStatus;
    }
    public void setHostStatus(int hostStatus) {
        this.hostStatus = hostStatus;
    }

    public String getHostDir() {
        return this.hostDir;
    }
    public void setHostDir(String hostDir) {
        this.hostDir = hostDir;
    }

    public String getUserName() {
        return this.userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return this.userPwd;
    }
    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public int getAgentPort() { return agentPort; }

    public void setAgentPort(int agentPort) {
        this.agentPort = agentPort;
    }
}
